package com.ky.pro.java.sharding.ecommerce.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 商品快照表
 * </p>
 *
 * @author Kevin Dummy
 * @since 2021-12-18
 */
@Getter
@Setter
@TableName("t_com_snapshot")
@ApiModel(value = "ComSnapshot对象", description = "商品快照表")
public class ComSnapshot implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("商品快照ID")
    private Long id;

    @ApiModelProperty("商品ID")
    private Long comId;

    @ApiModelProperty("订单ID")
    private Long orderId;

    @ApiModelProperty("原商品名称")
    private String snpComName;

    @ApiModelProperty("原商品描述")
    private String snpComDescription;

    @ApiModelProperty("原商品图片地址")
    private String snpComPicUrl;

    @ApiModelProperty("原商品价格")
    private BigDecimal snpComPrice;

    @ApiModelProperty("删除标志")
    private Boolean delStatus;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty("版本号")
    private Integer version;


}
